home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3980 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source text default
98% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 0a 53 | comp.la|ng.c++.S|
|00000060| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 49 20 4e 65 |ubject: |Re: I Ne|
|00000070| 65 64 20 48 45 4c 50 21 | 0a 44 61 74 65 3a 20 46 |ed HELP!|.Date: F|
|00000080| 72 69 2c 20 32 36 20 4a | 61 6e 20 31 39 39 36 20 |ri, 26 J|an 1996 |
|00000090| 31 33 3a 33 37 3a 31 30 | 20 2d 30 38 30 30 0a 4f |13:37:10| -0800.O|
|000000a0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 49 53 45 |rganizat|ion: ISE|
|000000b0| 20 49 6e 63 2e 20 68 74 | 74 70 3a 2f 2f 77 77 77 | Inc. ht|tp://www|
|000000c0| 2e 65 69 66 66 65 6c 2e | 63 6f 6d 0a 4d 65 73 73 |.eiffel.|com.Mess|
|000000d0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 30 39 34 39 38 |age-ID: |<3109498|
|000000e0| 36 2e 37 32 31 33 39 37 | 46 41 40 65 69 66 66 65 |6.721397|FA@eiffe|
|000000f0| 6c 2e 63 6f 6d 3e 0a 52 | 65 66 65 72 65 6e 63 65 |l.com>.R|eference|
|00000100| 73 3a 20 3c 34 65 36 65 | 35 73 24 32 73 65 40 69 |s: <4e6e|5s$2se@i|
|00000110| 78 6e 65 77 73 33 2e 69 | 78 2e 6e 65 74 63 6f 6d |xnews3.i|x.netcom|
|00000120| 2e 63 6f 6d 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.com>.NN|TP-Posti|
|00000130| 6e 67 2d 48 6f 73 74 3a | 20 40 6f 75 74 62 61 63 |ng-Host:| @outbac|
|00000140| 6b 2e 65 69 66 66 65 6c | 2e 63 6f 6d 0a 4d 69 6d |k.eiffel|.com.Mim|
|00000150| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000160| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 74 65 78 |ontent-T|ype: tex|
|00000170| 74 2f 70 6c 61 69 6e 3b | 20 63 68 61 72 73 65 74 |t/plain;| charset|
|00000180| 3d 75 73 2d 61 73 63 69 | 69 0a 43 6f 6e 74 65 6e |=us-asci|i.Conten|
|00000190| 74 2d 54 72 61 6e 73 66 | 65 72 2d 45 6e 63 6f 64 |t-Transf|er-Encod|
|000001a0| 69 6e 67 3a 20 37 62 69 | 74 0a 58 2d 4d 61 69 6c |ing: 7bi|t.X-Mail|
|000001b0| 65 72 3a 20 4d 6f 7a 69 | 6c 6c 61 20 32 2e 30 62 |er: Mozi|lla 2.0b|
|000001c0| 33 20 28 58 31 31 3b 20 | 49 3b 20 4c 69 6e 75 78 |3 (X11; |I; Linux|
|000001d0| 20 31 2e 32 2e 38 20 69 | 35 38 36 29 0a 54 6f 3a | 1.2.8 i|586).To:|
|000001e0| 20 4a 65 72 65 6d 79 20 | 4a 6f 68 6e 73 74 6f 6e | Jeremy |Johnston|
|000001f0| 20 3c 6a 65 72 65 6d 79 | 78 40 69 78 2e 6e 65 74 | <jeremy|x@ix.net|
|00000200| 63 6f 6d 2e 63 6f 6d 3e | 0a 43 43 3a 20 67 75 75 |com.com>|.CC: guu|
|00000210| 73 6c 0a 0a 4a 65 72 65 | 6d 79 20 4a 6f 68 6e 73 |sl..Jere|my Johns|
|00000220| 74 6f 6e 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |ton wrot|e:.> .> |
|00000230| 20 20 20 44 6f 65 73 20 | 61 6e 79 6f 6e 65 20 6b | Does |anyone k|
|00000240| 6e 6f 77 20 68 6f 77 20 | 64 6f 20 67 65 74 20 63 |now how |do get c|
|00000250| 68 61 72 61 63 74 65 72 | 20 69 6e 70 75 74 20 75 |haracter| input u|
|00000260| 73 65 20 74 68 65 20 67 | 6f 74 6f 20 73 74 61 74 |se the g|oto stat|
|00000270| 65 6d 65 6e 74 3f 0a 3e | 20 20 20 20 65 78 61 6d |ement?.>| exam|
|00000280| 70 6c 65 2c 49 20 63 61 | 6e 74 20 67 65 74 20 74 |ple,I ca|nt get t|
|00000290| 68 69 73 20 74 6f 20 77 | 6f 72 6b 3a 0a 3e 20 20 |his to w|ork:.> |
|000002a0| 20 20 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f | ______|________|
|000002b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0a 3e 20 0a 3e 20 |________|__.> .> |
|000002c0| 20 20 20 20 6d 61 69 6e | 28 29 0a 3e 20 20 20 20 | main|().> |
|000002d0| 20 7b 0a 3e 20 20 20 20 | 20 63 68 61 72 20 63 68 | {.> | char ch|
|000002e0| 3b 0a 3e 20 20 20 20 20 | 67 65 74 63 68 61 72 28 |;.> |getchar(|
|000002f0| 29 3b 0a 3e 20 20 20 20 | 20 69 66 20 28 63 68 3d |);.> | if (ch=|
|00000300| 3d 71 29 0a 3e 20 20 20 | 20 20 67 6f 74 6f 20 62 |=q).> | goto b|
|00000310| 3b 0a 3e 20 0a 3e 20 20 | 20 20 20 62 3a 70 72 69 |;.> .> | b:pri|
|00000320| 6e 74 66 28 22 69 74 20 | 77 6f 72 6b 65 64 22 29 |ntf("it |worked")|
|00000330| 3b 0a 3e 20 20 20 20 20 | 7d 0a 3e 20 20 20 20 20 |;.> |}.> |
|00000340| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000350| 5f 5f 5f 5f 5f 5f 5f 0a | 3e 20 20 20 20 20 57 68 |_______.|> Wh|
|00000360| 79 20 64 6f 65 73 6e 27 | 74 20 74 68 69 73 20 77 |y doesn'|t this w|
|00000370| 6f 72 6b 3f 0a 3e 20 0a | 0a 54 68 65 72 65 20 61 |ork?.> .|.There a|
|00000380| 72 65 20 61 20 66 65 77 | 20 74 68 69 6e 67 73 20 |re a few| things |
|00000390| 77 72 6f 6e 67 2e 0a 31 | 29 20 59 6f 75 20 73 68 |wrong..1|) You sh|
|000003a0| 6f 75 6c 64 20 73 74 6f | 72 65 20 74 68 65 20 76 |ould sto|re the v|
|000003b0| 61 6c 75 65 20 72 65 74 | 75 72 6e 65 64 20 62 79 |alue ret|urned by|
|000003c0| 20 60 67 65 74 63 68 61 | 72 28 29 27 2c 20 70 72 | `getcha|r()', pr|
|000003d0| 65 66 65 72 65 62 6c 79 | 20 69 6e 0a 60 63 68 27 |eferebly| in.`ch'|
|000003e0| 2e 0a 32 29 20 54 68 65 | 20 60 69 66 27 20 73 74 |..2) The| `if' st|
|000003f0| 61 74 65 6d 65 6e 74 20 | 73 68 6f 75 6c 64 20 72 |atement |should r|
|00000400| 65 61 64 3a 20 60 69 66 | 20 28 63 68 3d 3d 27 71 |ead: `if| (ch=='q|
|00000410| 27 29 27 0a 33 29 20 46 | 6f 72 20 72 65 61 73 6f |')'.3) F|or reaso|
|00000420| 6e 73 20 6f 66 20 70 72 | 6f 67 72 61 6d 20 66 6c |ns of pr|ogram fl|
|00000430| 6f 77 2c 20 74 68 65 20 | 60 70 72 69 6e 74 66 27 |ow, the |`printf'|
|00000440| 20 73 74 61 74 65 6d 65 | 6e 74 20 77 69 6c 6c 20 | stateme|nt will |
|00000450| 61 6c 77 61 79 73 20 62 | 65 0a 65 78 65 63 75 74 |always b|e.execut|
|00000460| 65 64 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 6a |ed, you |should j|
|00000470| 75 6d 70 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 6c |ump to a|nother l|
|00000480| 61 62 65 6c 2c 20 60 69 | 66 20 28 63 68 21 3d 27 |abel, `i|f (ch!='|
|00000490| 71 27 29 27 20 28 69 2e | 65 2e 20 74 68 65 72 65 |q')' (i.|e. there|
|000004a0| 0a 73 68 6f 75 6c 64 20 | 62 65 20 61 20 60 65 6c |.should |be a `el|
|000004b0| 73 65 27 20 62 72 61 6e | 63 68 20 69 6e 20 79 6f |se' bran|ch in yo|
|000004c0| 75 72 20 60 69 66 27 20 | 73 74 61 74 65 6d 65 6e |ur `if' |statemen|
|000004d0| 74 2e 0a 0a 59 6f 75 27 | 6c 6c 20 66 69 6e 64 20 |t...You'|ll find |
|000004e0| 74 68 65 20 72 65 76 69 | 73 65 64 20 76 65 72 73 |the revi|sed vers|
|000004f0| 69 6f 6e 20 61 74 20 74 | 68 65 20 65 6e 64 2e 0a |ion at t|he end..|
|00000500| 0a 52 65 67 61 72 64 73 | 2c 0a 09 47 75 75 73 20 |.Regards|,..Guus |
|00000510| 4c 65 65 75 77 20 6a 72 | 2e 0a 0a 2d 2d 2d 2d 2d |Leeuw jr|...-----|
|00000520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000530| 2d 2d 2d 2d 20 49 4e 43 | 4c 55 44 45 44 20 43 4f |---- INC|LUDED CO|
|00000540| 44 45 20 3c 63 75 74 20 | 68 65 72 65 3e 20 2d 2d |DE <cut |here> --|
|00000550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000560| 2d 2d 2d 0a 0a 2f 2f 20 | 54 65 73 74 20 70 72 6f |---..// |Test pro|
|00000570| 67 72 61 6d 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |gram..#i|nclude <|
|00000580| 73 74 64 69 6f 2e 68 3e | 0a 0a 69 6e 74 20 6d 61 |stdio.h>|..int ma|
|00000590| 69 6e 20 28 29 0a 7b 0a | 20 20 63 68 61 72 20 63 |in ().{.| char c|
|000005a0| 68 3b 0a 20 20 63 68 20 | 3d 20 67 65 74 63 68 61 |h;. ch |= getcha|
|000005b0| 72 20 28 29 3b 0a 20 20 | 69 66 20 28 63 68 20 3d |r ();. |if (ch =|
|000005c0| 3d 20 27 71 27 29 0a 20 | 20 20 20 67 6f 74 6f 20 |= 'q'). | goto |
|000005d0| 62 3b 0a 20 20 65 6c 73 | 65 0a 20 20 20 20 67 6f |b;. els|e. go|
|000005e0| 74 6f 20 63 3b 0a 0a 62 | 3a 70 72 69 6e 74 66 20 |to c;..b|:printf |
|000005f0| 28 22 69 74 20 77 6f 72 | 6b 65 64 22 29 3b 0a 20 |("it wor|ked");. |
|00000600| 20 72 65 74 75 72 6e 20 | 31 3b 0a 63 3a 70 72 69 | return |1;.c:pri|
|00000610| 6e 74 66 20 28 22 69 74 | 20 64 69 64 6e 27 74 20 |ntf ("it| didn't |
|00000620| 77 6f 72 6b 22 29 3b 0a | 20 20 72 65 74 75 72 6e |work");.| return|
|00000630| 20 30 3b 0a 7d 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d | 0;.}..-|--------|
|00000640| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 45 4e 44 |--------|---- END|
|00000650| 20 49 4e 43 4c 55 44 45 | 44 20 43 4f 44 45 20 3c | INCLUDE|D CODE <|
|00000660| 63 75 74 20 68 65 72 65 | 3e 20 2d 2d 2d 2d 2d 2d |cut here|> ------|
|00000670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
+--------+-------------------------+-------------------------+--------+--------+